# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# @author KS


LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/include 
LOCAL_MODULE    := arplus
LOCAL_CFLAGS +=  -Wno-psabi #supress warning: "note: the mangling of 'va_list' has changed in GCC 4.4"

#bind logging library
LOCAL_LDLIBS := -llog -lGLESv1_CM

#//////////////////main//////////////////////
LOCAL_SRC_FILES :=  \
src/ARToolkitPlusMain.cpp \
src/Camera.cpp \
src/Tracker.cpp \
src/TrackerMultiMarker.cpp \
src/TrackerSingleMarker.cpp \

#LOCAL_SRC_FILES +=  \
src/arGL.cpp

#//////////////////core//////////////////////
LOCAL_SRC_FILES +=  \
src/core/arBitFieldPattern.cpp \
src/core/arDetectMarker.cpp \
src/core/arDetectMarker2.cpp \
src/core/arGetCode.cpp \
src/core/arGetInitRot2.cpp \
src/core/arGetMarkerInfo.cpp \
src/core/arGetTransMat.cpp \
src/core/arGetTransMat2.cpp \
src/core/arGetTransMat3.cpp \
src/core/arGetTransMatCont.cpp \
src/core/arLabeling.cpp \
src/core/arLabelingImpl.h \
src/core/arMultiActivate.cpp \
src/core/arMultiGetTransMat.cpp \
src/core/arMultiGetTransMatHull.cpp \
src/core/arMultiReadConfigFile.cpp \
src/core/arUtil.cpp \
src/core/matrix.cpp \
src/core/mPCA.cpp \
src/core/paramDecomp.cpp \
src/core/paramDistortion.cpp \
src/core/rppGetTransMat.cpp \
src/core/rppMultiGetTransMat.cpp \
src/core/vector.cpp \


#//////////////////extra//////////////////////
LOCAL_SRC_FILES += \
src/extra/BCH.cpp \
src/extra/Hull.cpp \
#//////////////////librpp//////////////////////
LOCAL_SRC_FILES +=  \
src/librpp/arGetInitRot2Sub.cpp \
src/librpp/librpp.cpp \
src/librpp/librpp.h \
src/librpp/rpp.cpp \
src/librpp/rpp.h \
src/librpp/rpp_const.h \
src/librpp/rpp_quintic.cpp \
src/librpp/rpp_svd.cpp \
src/librpp/rpp_types.h \
src/librpp/rpp_vecmat.cpp \
src/librpp/rpp_vecmat.h
#//////////////////librpp/MATLAB/////////////////////
#////LOCAL_SRC_FILES += src/librpp/MATLAB/robust_pose.cpp 



include $(BUILD_SHARED_LIBRARY)

